import { Component } from 'react'
import { View } from '@tarojs/components'
import './index.scss'
import Taro from '@tarojs/taro'
import dayjs from "dayjs"

//组件
import { LgPopLayer } from '../../../../components/popLayer'
import LgButton from '../../../../components/button'

interface IndexState{
  chooseDate?:string
}

export default class PrPopRecord extends Component <any,IndexState>{
  constructor(props) {
    super(props)
    this.state={

    }
  }

  componentWillMount() { }

  componentDidMount() { }

  componentWillUnmount() { }

  recordStart(){//开始录音
    console.log("开始录音")
  }
  recordEnd(){//结束录音
    console.log("结束录音")
  }

  render() {
    return (
      <View className='PrPopRecord'>
        <LgPopLayer
            isOpen={this.props.isOpen}
            showLayer={this.props.onClosePop}
            position="bottom"
            title={"发送语音文件"}
            showClose
            customContentClass="lg_Record_select_pop"
        >
          <View>
            
          </View>
          <View className='PrPopRecord_btnBox'>
            <View className='btn_record'
              onTouchStart={this.recordStart} 
              onTouchEnd={this.recordEnd}
            >按住说话</View>
          </View>
          
        </LgPopLayer>
      </View>
    )
  }
}
